using System.Drawing;

namespace ICSharpCode.TextEditor
{
    public class BlackScrollBarRenderer : TextEditorScrollBarRenderer
    {
        public BlackScrollBarRenderer()
        {
            drawThumbGrip = false;
            thumbColors[0, 0] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 1] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 2] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 3] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 4] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 5] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 6] = Color.FromArgb(104, 104, 104);
            thumbColors[0, 7] = Color.FromArgb(104, 104, 104);
            thumbColors[1, 0] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 1] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 2] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 3] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 4] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 5] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 6] = Color.FromArgb(158, 158, 158);
            thumbColors[1, 7] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 0] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 1] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 2] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 3] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 4] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 5] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 6] = Color.FromArgb(158, 158, 158);
            thumbColors[2, 7] = Color.FromArgb(158, 158, 158);
            arrowColors[0, 0] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 1] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 2] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 3] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 4] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 5] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 6] = Color.FromArgb(62, 62, 66);
            arrowColors[0, 7] = Color.FromArgb(62, 62, 66);
            arrowColors[1, 0] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 1] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 2] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 3] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 4] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 5] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 6] = Color.FromArgb(153, 153, 153);
            arrowColors[1, 7] = Color.FromArgb(153, 153, 153);
            arrowColors[2, 0] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 1] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 2] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 3] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 4] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 5] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 6] = Color.FromArgb(158, 158, 158);
            arrowColors[2, 7] = Color.FromArgb(158, 158, 158);
            backgroundColors[0] = Color.FromArgb(62, 62, 66);
            backgroundColors[1] = Color.FromArgb(62, 62, 66);
            backgroundColors[2] = Color.FromArgb(62, 62, 66);
            backgroundColors[3] = Color.FromArgb(62, 62, 66);
            backgroundColors[4] = Color.FromArgb(62, 62, 66);
            trackColors[0] = Color.FromArgb(62, 62, 66);
            trackColors[1] = Color.FromArgb(62, 62, 66);
            arrowBorderColors[0] = Color.FromArgb(220, 220, 220);
            arrowBorderColors[1] = Color.FromArgb(220, 220, 220);
            arrowBorderColors[2] = Color.FromArgb(220, 220, 220);
            arrowBorderColors[3] = Color.FromArgb(220, 220, 220);
        }

        public override void DrawBorder(Graphics g, bool enable, Color color, Rectangle rect)
        {
            Color color2 = Color.FromArgb(93, 140, 201);
            base.DrawBorder(g, enable, color, rect);
        }

        public override void DrawThumb(Graphics g, Rectangle rect, ScrollBarState state, ScrollBarOrientation orientation)
        {
            base.DrawThumb(g, rect, state, ScrollBarOrientation.None);
            if (orientation == ScrollBarOrientation.Vertical)
            {
                DrawThumbVertical(g, rect, state);
            }
            else
            {
                DrawThumbHorizontal(g, rect, state);
            }
        }
    }
}
